//
//  VCOfSecond.m
//  UI03_UI
//
//  Created by LGC on 16/3/11.
//  Copyright © 2016年 Apon. All rights reserved.
//

#import "VCOfSecond.h"
#import "MyButton.h"
#import "LTView.h"


@interface VCOfSecond ()

@end

@implementation VCOfSecond

- (void)viewDidLoad {
    [super viewDidLoad];
    self.view.backgroundColor = [UIColor blackColor];
    [self createSubView];
    // Do any additional setup after loading the view.
}


#pragma mark - SubView 
- (void)createSubView {
    
    MyButton *buttonOfBack = [MyButton buttonWithType:UIButtonTypeSystem];
    
    buttonOfBack.frame = CGRectMake(40, 300, self.view.frame.size.width - 80, 40);
    
    buttonOfBack.backgroundColor = [UIColor whiteColor];
    
    [self.view addSubview:buttonOfBack];
    
    [buttonOfBack setTitle:@"返回" forState:UIControlStateNormal];
    
    [buttonOfBack addTarget:self action:@selector(handleBack:) forControlEvents:UIControlEventTouchUpInside];
    
}

- (void)handleBack:(MyButton *)button {
    
    [self dismissViewControllerAnimated:YES completion:^{
        
    }];
    
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
